package com.springcloud_provider.service.impl;

import com.springcloud_api.pojo.Dept;
import com.springcloud_provider.mapper.DeptMapper;
import com.springcloud_provider.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:DeptServiceImpl
 * Package:com.springcloud_provider.service.impl
 * Description
 *
 * @Author:@wenxueshi
 * @Create:2023/2/5 - 14:21
 * @Version:v1.0
 */
@Service
public class DeptServiceImpl implements IDeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public boolean addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    @Override
    public Dept getById(Integer id) {
        return deptMapper.getById(id);
    }

    @Override
    public List<Dept> findAllDept() {
        return deptMapper.findAllDept();
    }
}
